school = "移通学院"# 全局变量，该文件下都能调用
name = "lisi"
def student_info():
    # global name# 设置成全局变量
    name = "zhangsan"
    num = 10001# 局部变量只能在函数内进行调用
    return f"姓名：{name}，学号：{num}，学校：{school}"

stu = student_info()
print(stu)
print(school)
print(name)
